package com.huawei.appgallery.forum.section.view.widget;

import android.content.Context;
import android.util.AttributeSet;
import androidx.annotation.Nullable;
import com.huawei.appgallery.forum.section.view.widget.SectionDetailSubHead.c;
import o.cab;
import o.cab.d;
import o.cab.i;
import o.epo;
import o.fo;

public class BuoySectionDetailSubHead extends SectionDetailSubHead {

    public static class b extends c {
        public b(Context context, String str, String str2, int i) {
            super(context, str, str2, i);
        }

        void ˊ(int i) {
        }

        protected int ˊ(Context context) {
            return context.getResources().getDimensionPixelSize(cab.c.ˊ);
        }
    }

    public BuoySectionDetailSubHead(Context context) {
        super(context);
    }

    public BuoySectionDetailSubHead(Context context, @Nullable AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    public BuoySectionDetailSubHead(Context context, @Nullable AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
    }

    protected void ˋ() {
        this.ॱ.setImmer(true);
        this.ॱ.setTextColor(fo.ˋ(getContext(), o.cab.b.ʻ));
        this.ˎ.setBackground(epo.ॱ(fo.ˊ(getContext(), d.ॱˊ), fo.ˋ(getContext(), o.cab.b.ʻ)));
    }

    protected int ˏ() {
        return i.ʻ;
    }

    protected c ˊ(Context context, String str, String str2, int i) {
        return new b(context, str, str2, i);
    }
}
